﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Xml;

namespace curbside.Extensions
{
    public class XmlString : BaseString
    {
        public XmlString(string s) : base(s) { }
    }

    public static class XmlStringExtensions
    {
        public static XDocument ToXDocument(this XmlString s)
        {
            return XDocument.Parse(s.Value);
        }

        public static XmlDocument ToXmlDocument(this XmlString s)
        {
            XmlDocument doc = new XmlDocument();
            doc.LoadXml(s.Value);
            return doc;
        }
    }
}
